const A = function (props) {
  const { value, setValue } = props;
  const setState = ({target}) => {
    setValue(target.value)
  };
  return (
    <>
      <textarea onChange={setState} cols="30" value={value}></textarea>
    </>
  );
};

export default A;
